﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace DataModel.Models
{
    public class Project
    {
        [DataMember(IsRequired = true)]
        [JsonProperty(PropertyName = "title")]
        public string Title { get; set; } = string.Empty;

        [DataMember(IsRequired = true)]
        [JsonProperty(PropertyName = "path")]
        public string Path { get; set; } = string.Empty;

        [DataMember(IsRequired = true)]
        [JsonProperty(PropertyName = "middle")]
        public string Middle { get; set; } = string.Empty;

        [DataMember(IsRequired = true)]
        [JsonProperty(PropertyName = "preview")]
        public string Preview { get; set; } = string.Empty;

        [DataMember(IsRequired = true)]
        [JsonProperty(PropertyName = "origin")]
        public string Origin { get; set; } = string.Empty;

        [JsonIgnore]
        public string Dir { get; set; } = string.Empty;
    }
}
